package what.the.fun.jdbc;

import java.sql.ResultSet;
import java.sql.SQLException;

import org.springframework.jdbc.core.RowMapper;

import what.the.fun.domain.Answer;
import what.the.fun.domain.Result;

public class ResultRowMapper implements RowMapper<Result>{

	@Override
	public Result mapRow(ResultSet arg0, int arg1) throws SQLException {
		ResultExtractor extractor = new ResultExtractor();
		return extractor.extractData(arg0);
	}

}
